package com.sc.nft.mapper;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.sc.nft.entity.CopyrightAuctionRecord;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.sc.nft.entity.dto.CopyrightMarketAuctionDTO;
import com.sc.nft.entity.vo.CopyrightAuctionAdminPageVO;
import com.sc.nft.entity.vo.CopyrightAuctionRecordAdminListVO;
import com.sc.nft.entity.vo.CopyrightAuctionRecordUserListVO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

/**
 * <p>
 * 版权拍卖记录 Mapper 接口
 * </p>
 *
 * @author liGen
 * @since 2024-09-12
 */
@Mapper
public interface CopyrightAuctionRecordMapper extends BaseMapper<CopyrightAuctionRecord> {

    IPage<CopyrightMarketAuctionDTO> market(Page page,@Param("name") String name);
    /**
     * 当前用户拍卖记录
     * @param mp
     * @param userId
     * @return
     */
    IPage<CopyrightAuctionRecordUserListVO> copyrightAuctionRecordUserList(Page mp, @Param("userId") Long userId);

    /**
     * admin拍卖记录
     * @param mp
     * @param firstTitle
     * @return
     */
    IPage<CopyrightAuctionRecordAdminListVO> copyrightAuctionRecordAdminUserList(Page mp,@Param("firstTitle") String firstTitle);


}
